﻿#ifndef CMDLINECHARTAXISLINEUPDATE_H
#define CMDLINECHARTAXISLINEUPDATE_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartAxisLineUpdate : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartAxisLineUpdate();
            ~CmdLineChartAxisLineUpdate();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(QString typeAxis, int id, double value) { 
                m_typeAxis = typeAxis; 
                m_id = id; 
                m_value = value; 
             }

        private:
            QString m_typeAxis; 
            int m_id; 
            double m_value; 
    };

} // namespace PostCommand

#endif
